package com.chhuang.system.bean;


import com.chhuang.core.bean.QueryBean;
import com.chhuang.system.po.ChMenu;

/**
* ChMenu QueryBean
* @author Mysql2MQDS
* @date Tue Jul 21 10:30:16 CST 2015
*/
public class ChMenuQueryBean extends QueryBean<ChMenu>{
	private String menuId;
	public String getMenuId(){
		return menuId;
	}
	public void setMenuId(String menuId){
		this.menuId=menuId;
	}
	private String menuName;
	public String getMenuName(){
		return menuName;
	}
	public void setMenuName(String menuName){
		this.menuName=menuName;
	}
	private Boolean asParent;
	public Boolean getAsParent(){
		return asParent;
	}
	public void setAsParent(Boolean asParent){
		this.asParent=asParent;
	}
	private String parentId;
	public String getParentId(){
		return parentId;
	}
	public void setParentId(String parentId){
		this.parentId=parentId;
	}
	private String url;
	public String getUrl(){
		return url;
	}
	public void setUrl(String url){
		this.url=url;
	}
	private String icon;
	public String getIcon(){
		return icon;
	}
	public void setIcon(String icon){
		this.icon=icon;
	}
	private Integer menuOrder;
	public Integer getMenuOrder(){
		return menuOrder;
	}
	public void setMenuOrder(Integer menuOrder){
		this.menuOrder=menuOrder;
	}
	@Override
	public String fieldTransforColumn(String field) {
		if("menuId".equals(field)){
			return "menu_id";
		}else if("menuName".equals(field)){
			return "menu_name";
		}else if("asParent".equals(field)){
			return "as_parent";
		}else if("parentId".equals(field)){
			return "parent_id";
		}else if("icon".equals(field)){
			return "icon";
		}else if("menuOrder".equals(field)){
			return "menu_order";
		}else{
			return field;
		}
	}
	@Override
	public String columnTransforField(String column) {
		if("menu_id".equals(column)){
			return "menuId";
		}else if("menu_name".equals(column)){
			return "menuName";
		}else if("as_parent".equals(column)){
			return "asParent";
		}else if("parent_id".equals(column)){
			return "parentId";
		}else if("icon".equals(column)){
			return "icon";
		}else if("menu_order".equals(column)){
			return "menuOrder";
		}else{
			return column;
		}
	}
}